<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>监管单位信息</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Expires" CONTENT="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/static/css/buildUnit/common.css">
    <style type="text/css">
        .layui-container {
            padding-top: 20px;
            width: auto;;
        }
    </style>
</head>
<body>
<div class="layui-container">
    <form id="form" class="layui-form layui-form-pane" action="" lay-filter="example">
        <input type="hidden" name="buildCorpId" class="formData" value="">
        <input type="hidden" name="prjId" class="formData" value="">
        <!--建设单位信息-->
        <div class="layui-collapse">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">建设单位信息</h2>
                <div class="layui-colla-content layui-show">
                    <table class="layui-table v-table">
                        <tbody>
                        <tr class="layui-hide">
                            <td width="24%"></td>
                            <td width="13%"></td>
                            <td width="13%"></td>
                            <td width="24%"></td>
                            <td width="13%"></td>
                        </tr>
                        <tr>
                            <td class="th8">用户名</td>
                            <td colspan="3">
                                <input type="text" name="userName" lay-verify="isEmpty"
                                       autocomplete="off" class="layui-input formData layui-disabled" disabled/>
                            </td>
                        </tr>
                        <tr>
                            <td class="th8">单位名称</td>
                            <td colspan="3">
                                <input type="text" name="orgName" lay-verify="isEmpty"
                                       autocomplete="off" class="layui-input formData layui-disabled" disabled/>
                            </td>
                        </tr>
                        <tr>
                            <td class="th8">上级单位</td>
                            <td colspan="3">
                                <input type="text" name="parentName" lay-verify="isEmpty"
                                       autocomplete="off" class="layui-input formData layui-disabled" disabled/>
                            </td>
                        </tr>
                        <tr>
                            <td class="th8">级别</td>
                            <td colspan="3">
                                <select name="orgLevel" id="orgLevel" class="formData layui-disabled" disabled>
                                    <option value="">请选择</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td class="th8 required">行政区域</td>
                            <td colspan="3">
                                <div class="layui-input-inline">
                                    <select name="provinceNum" lay-filter="provinceNum" lay-verify="isEmpty"
                                            class="formData ">
                                        <option value="">请选择省</option>
                                    </select>
                                </div>
                                <div class="layui-input-inline">
                                    <select name="cityNum" lay-filter="cityNum" lay-verify="isEmpty" class="formData">
                                        <option value="">请选择市</option>
                                    </select>
                                </div>
                                <div class="layui-input-inline">
                                    <select name="countyNum" lay-filter="countyNum" lay-verify="isEmpty"
                                            class="formData">
                                        <option value="">请选择县/区</option>
                                    </select>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>

        </div>
    </form>
</div>
<script type="text/javascript" src="/lib/layui/layui.js"></script>
<script src="/static/js/main.js"></script>
<script>
    layui.use(['form', 'jquery', 'element', 'sessionFun', 'configure', 'configureCom', 'ztree', 'laydate', 'selectFun'], function () {
        window.$ = layui.$;
        var form = layui.form;
        var configure = layui.configure;
        ztree = layui.ztree;
        var laydate = layui.laydate;
        var configureCom = layui.configureCom;
        var sessionFun = layui.sessionFun;
        var token = localStorage.getToken;
        var selectFun = layui.selectFun;
        var element = layui.element;
        var listData = null;
        var defaults = {};
        configureCom.postDataAjax(configure.MY_COMPANY_LIST_HTTP, {}).then(function (res) {
            var typeData = res.sysOrgEntity;
            configureCom.selectDataFun(configure.REGULATOR_DEPT_LEVEL, typeData.orgLevel, '#orgLevel');//级别
            /*defaults = {
                s1: 'provinceNo',
                s2: 'cityNo',
                s3: 'countyNo',
                v1: typeData.provinceNo,
                v2: typeData.cityNo,
                v3: typeData.countyNo
            };
            element.render('collapse');
            selectFun.treeSelect(defaults);
            form.render();*/

            form.val('example', typeData);

        });

    });

    function getData() {
        var data = {};
        $('.formData').each(function (index, item) {
            var key = $(item).attr('name');
            data[key] = $(item).val();
        });
        return data;
    }
</script>
</body>
</html>
